/*
 * @Description: 
 * @Author: william
 * @Date: 2024-08-14 09:33:06
 * @LastEditors: william
 * @LastEditTime: 2025-08-29 09:44:32
 */
//  uni-section 标题栏
.uni-section-header__decoration {
  background-color: var(--main-theme) !important;
}

// 清除图标
// .uni-icons.uniui-clear.content-clear-icon {
//   color: var(--main-theme) !important;
// }

// uni-data-picker 级联选择器
.selected-item-active {
  border-bottom-color: var(--main-theme) !important;
}

// uni-datetime-picker 日期选择器
.uni-calendar-item--multiple .uni-calendar-item--before-checked,
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
  background-color: var(--main-theme) !important;
}
.uni-calendar-item__weeks-box .uni-calendar-item--checked {
  background-color: var(--main-theme) !important;
}
.uni-datetime-picker--btn {
  background-color: var(--main-theme) !important;
}

// uni-data-checkbox 数据选择器
.uni-data-checklist .checklist-group .checklist-box.is--default.is-checked {
  .radio__inner {
    border-color: var(--main-theme) !important;
    .radio__inner-icon {
      background-color: var(--main-theme) !important;
    }
  }
  .checklist-text {
    color: var(--main-theme) !important;
  }
}

// uni-popup 弹出层 popup-dialog
.uni-popup-dialog .uni-dialog-button .uni-button-color {
  color: var(--main-theme);
}

// u-toast 消息提示
.u-toast__content__text--success {
  color: var(--main-theme) !important;
}

// up-tabs标签
.u-tabs__wrapper__nav__line {
  background-color: var(--main-theme) !important;
}

// up-album 图片预览
#u-a-p {
  > div {
    z-index: 11000 !important;
  }
}

// uni-data-picker 级联选择器
.uni-data-pickerview {
  .selected-item {
    padding: 20rpx 0;
  }
  .selected-item-active {
    margin: 0 20rpx !important;
    padding: 24rpx 0 !important;
    font-size: 22rpx;
    font-weight: 600;
    color: #333;
    border-bottom-color: var(--main-theme);
  }
  .item {
    padding: 14rpx 30rpx !important;
    .item-text {
      font-size: 22rpx;
      color: #333;
    }
    .check {
      border-top: 0 solid transparent;
      border-right: 4rpx solid var(--main-theme);
      border-bottom: 4rpx solid var(--main-theme);
      border-left: 0 solid transparent;
    }
  }
}

// uni-table 表格
.uni-table {
  width: 100%;
  min-width: 100% !important;
  .uni-table-tr {
    .uni-table-th {
      padding: 12rpx 10rpx;
      font-size: 28rpx;
      color: var(--color-333);
    }
    .uni-table-td {
      padding: 8rpx 10rpx;
      font-size: 28rpx;
      color: var(--color-666);
    }
  }
}

// up-number-box 步进器样式
.u-number-box {
  .u-number-box__minus,
  .u-number-box__plus {
    width: 42rpx !important;
    height: 42rpx !important;
    background-color: #edeef0 !important;
    .u-icon__icon {
      font-size: 18rpx !important;
      font-weight: 400 !important;
      color: #7e8081 !important;
    }
  }
  .u-number-box__minus {
    border-top-left-radius: 21rpx !important;
    border-bottom-left-radius: 21rpx !important;
  }
  .u-number-box__plus {
    border-top-right-radius: 21rpx !important;
    border-bottom-right-radius: 21rpx !important;
  }
  .u-number-box__minus--disabled,
  .u-number-box__plus--disabled {
    background-color: var(--body-theme) !important;
  }
  .u-number-box__input {
    width: 178rpx !important;
    height: 42rpx !important;
    margin: 0 2rpx;
    background-color: var(--main-theme) !important;
    .uni-input-wrapper,
    .uni-input-input {
      line-height: 18rpx;
      font-size: 18rpx;
      font-weight: 400;
      color: var(--color-fff);
    }
  }
}

// uni-forms样式
.uni-forms {
  .uni-forms-item.is-direction-left,
  .uni-forms-item.is-direction-top {
    margin-bottom: 24rpx;
    .uni-forms-item__error {
      padding-top: 2rpx;
      line-height: 20rpx;
      font-size: 20rpx;
      font-weight: 400;
      color: var(--color-red);
    }
  }
}

// uni-easyinput 增强输入框
.uni-easyinput__content.is-input-border.is-focused {
  border-color: var(--main-theme) !important;
  .content-clear-icon {
    color: var(--main-theme) !important;
  }
}

// uni-easyinput样式
.uni-easyinput {
  .is-input-error-border .uni-easyinput__placeholder-class {
    color: var(--color-red);
  }
  .uni-easyinput__content {
    border-width: 1rpx;
    border-radius: 4rpx;
    &.is-disabled {
      .uni-easyinput__content-input {
        background-color: transparent !important;
      }
    }
    .uni-easyinput__content-input {
      min-height: 36rpx;
      height: 36rpx;
      padding-left: 10rpx !important;
      padding-right: 10rpx !important;
    }
    .content-clear-icon {
      padding: 0 10rpx;
      font-size: 26rpx !important;
      font-weight: 400;
      color: var(--color-999) !important;
    }
  }
  .uni-easyinput__placeholder-class {
    font-size: 22rpx !important;
    font-weight: 400;
    color: var(--color-999);
  }
  .uni-input-input {
    font-size: 22rpx;
    font-weight: 400;
    color: var(--color-333);
  }
}

// zxz-uni-data-select多选择框-样式
.uni-stat__select {
  .uni-select {
    height: 56rpx !important;
    min-height: 56rpx !important;
    padding: 0 12rpx 0 18rpx;
    border: none !important;
    background-color: var(--body-theme);
    border-radius: 0 !important;
    &.uni-select--disabled {
      background-color: var(--sub-theme);
    }
    .uni-select__input-box {
      height: 56rpx !important;
      min-height: 56rpx !important;
    }
    .uni-select__input-text {
      line-height: 22rpx;
      font-size: 22rpx;
      font-weight: 400;
      color: var(--color-333);
    }
    .uni-select__input-placeholder {
      color: var(--color-999);
    }
    .uni-icons {
      font-size: 26rpx !important;
      font-weight: 400;
      color: var(--color-666) !important;
    }
    .uni-select__selector-item {
      height: 56rpx !important;
      line-height: 56rpx !important;
      font-size: 22rpx;
      font-weight: 400;
      color: var(--color-333);
    }
    .uni-select_selector-item_active {
      color: var(--main-theme);
      .uni-icons.uniui-checkmarkempty {
        color: var(--main-theme) !important;
      }
    }
    .uni-select__selector-empty {
      height: 32rpx;
      line-height: 32rpx;
      justify-content: center;
      padding: 0 10rpx;
      font-size: 18rpx;
      color: var(--color-333);
    }
    .uni-select__input-box .tag-calss {
      height: 40rpx;
      line-height: 40rpx;
      margin: 4rpx 0 4rpx 6rpx;
      padding: 0 6rpx 0 10rpx;
      font-size: 22rpx;
      font-weight: 400;
      color: var(--color-333);
    }
  }
}

// 表单的下拉框
.uss-form-select .uni-stat__select {
  .uni-select {
    height: 32rpx !important;
    min-height: 32rpx !important;
    padding: 0 6rpx 0 12rpx;
    .uni-select__input-box {
      height: 32rpx !important;
      min-height: 32rpx !important;
    }
    .uni-select__input-text {
      line-height: 18rpx;
      font-size: 18rpx;
    }
    .uni-icons:not(.uniui-clear) {
      font-size: 16rpx !important;
    }
    .uni-icons.uniui-clear {
      font-size: 18rpx !important;
    }
    .uni-select__selector-item {
      height: 32rpx !important;
      line-height: 32rpx !important;
      justify-content: center !important;
      padding: 0 10rpx;
      font-size: 18rpx;
    }
  }
}

// toast样式
.u-toast .u-transition {
  .u-toast__content {
    padding: 12rpx 20rpx;
    .u-icon__icon {
      font-size: 24rpx !important;
    }
    .u-toast__content__text {
      font-size: 22rpx;
      font-weight: 400;
      &.u-toast__content__text--success {
        color: var(--main-theme);
      }
    }
  }
}

// notify 样式
.nw-notify.u-transition {
  top: 29 * 2rpx !important;
  .u-notify {
    padding: 12rpx 20rpx;
    .u-icon__icon {
      font-size: 24rpx !important;
    }
    .u-notify__warpper__text {
      font-size: 24rpx !important;
      font-weight: 400;
    }
  }
}

.uni-modal {
  width: 75%;
  border-radius: 34rpx;
  .uni-modal__title {
    line-height: 24rpx;
    font-size: 24rpx;
    font-weight: bold;
    color: var(--color-333);
  }
  .uni-modal__bd {
    line-height: 32rpx;
    font-size: 22rpx;
    font-weight: 400;
    color: var(--color-333);
    padding: 20rpx 40rpx 0;
  }
  .uni-modal__ft {
    line-height: 48rpx;
    padding: 40rpx;
    position: static;
    &::after {
      display: none;
    }
    .uni-modal__btn {
      border:none;
      font-size: 22rpx;
      font-weight: 400;
      background-color: var(--main-theme);
      color: var(--color-fff);
      border-radius: 30rpx;
      & + .uni-modal__btn {
        margin-left: 10rpx;
      }
      &::after {
        display: none;
      }
    }
    .uni-modal__btn_primary {
      background-color: var(--main-theme);
      color: var(--color-fff)!important;
    }
    .uni-modal__btn_default {
      position: absolute;
      top: 20rpx;
      right: 20rpx;
      background-color: var(--color-fff);
      color: var(--color-666)!important;
      
    }
  }
  
}

